package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.demo.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author 京平笙
 * @since 2021-12-06
 */
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from User u"+" ${ew.customSqlSegment}")
    User loginSuccess(@Param("User") User User, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);
}